import req from "./axioscommon1";
/** 
 * @Description 根据accessToken查询用户信息
 * @param { String }  accessToken 
 */
export const getUser = (params) => {
  return req({
    baseUrl: 'ssoapi'
  }).get("/api/user/accesstoken/" + params + "/withaccounttype");
};
// 获取clientIp
export const getClientIp = () => {
  return req({
    baseUrl: 'clientip'
  }).get('/api/UtilityOpenApi/GetUserIP')
}

/**
 * 获取jwtToken
 */
export const jwtToken = (params) => {
  return req({
    baseUrl: 'ssoapi'
  }).post("/api/JwtToken/ecptoken", params)
}